package com.fuze.energy.service.impl;

import com.fuze.energy.domain.entity.EventLog;
import com.fuze.energy.mapper.WarningMapper;
import com.fuze.energy.service.WarningService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class WarningServiceImpl implements WarningService {

    @Autowired
    WarningMapper warningMapper;

    @Override
    public List<EventLog> queryAlarmRecords(String mainBoardId) {

        List<EventLog> eventLogs = warningMapper.queryRecords(mainBoardId);
        log.info("eventLogs = " + eventLogs);
        return eventLogs;
    }
}
